package cn.com.nes.site.entity.em;

import java.util.HashMap;
import java.util.Map;

/**
 * 业务分类枚举
 */
public enum BusinessType {

    _ctce("ctce", "清洁取暖"),

    _agent("agent", "厂家设备");

    private String key;

    private String value;

    BusinessType(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public String getKey() {
        return key;
    }

    public String getValue() {
        return value;
    }

    public static String getVal(String key) {
        Map<String, String> map = new HashMap<>();
        for (BusinessType value : values()) {
            map.put(value.getKey(), value.getValue());
        }
        return map.get(String.valueOf(key));
    }

}
